package com.neuedu.cockpit.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neuedu.cockpit.domain.HmCarState;
import com.neuedu.common.core.mapper.BaseMapperX;

/**
 * 车辆状态Mapper接口
 * 
 * @author neuedu
 * @date 2024-04-29
 */
public interface HmCarStateMapper extends BaseMapperX<HmCarState>
{
    /**
     * 查询车辆状态
     * 
     * @param carId 车辆状态主键
     * @return 车辆状态
     */
    public HmCarState selectHmCarStateByCarId(Long carId);

    /**
     * 查询车辆状态列表
     * 
     * @param hmCarState 车辆状态
     * @return 车辆状态集合
     */
    public List<HmCarState> selectHmCarStateList(HmCarState hmCarState);

    /**
     * 新增车辆状态
     * 
     * @param hmCarState 车辆状态
     * @return 结果
     */
    public int insertHmCarState(HmCarState hmCarState);

    /**
     * 修改车辆状态
     * 
     * @param hmCarState 车辆状态
     * @return 结果
     */
    public int updateHmCarState(HmCarState hmCarState);

    /**
     * 删除车辆状态
     * 
     * @param carId 车辆状态主键
     * @return 结果
     */
    public int deleteHmCarStateByCarId(Long carId);

    /**
     * 批量删除车辆状态
     * 
     * @param carIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHmCarStateByCarIds(Long[] carIds);
}
